<?php
/**
 *
 */
namespace app\common\query;

use app\common\model\GoodsType as GoodsTypeModel;

use app\common\cache\CacheData;

class GoodsType
{
    /**
     * [getTypeName 获取分类名]
     * @param  string $tid [description]
     * @return [type]      [description]
     */
    public static function getTypeName($tid=''){
        $this->model = new GoodsTypeModel();
        return $this->model->where(['id'=>$tid])->field('name')->find();
    }

    /**
     * [getRows 获取分类列表]
     * @return [type] [description]
     */
    public static function getRows(){
        $this->model = new GoodsTypeModel();
        //先查询所有的
    }

}